1 using System.Collections;
2 using
System.Collections.Generic;
3 using
UnityEngine;
4
5 public
class DestroyWithDelay : MonoBehaviour {
6
7     
public float delay;
8
9     
// Use this for initialization
10     
void Start () {
11         Destroy(gameObject, delay);
12     }
13 }


Use this for initialization




Trò chơi bắn đạn đơn giản sử dụng Unity 13.472 lượt xem

Gõ tìm kiếm nhanh...